package chat;

/**
 * A specific type of Message that is not directly created by the User.
 * 
 * @author Lois Fozzard
 * 
 */
public class ActionMessage extends Message
{
    private static final long serialVersionUID = 1L;

    /**
     * Constructs the ActionMessage
     * 
     * @param message
     *            the plain text String this Message is to contain (i.e. no html
     *            tags)
     */
    public ActionMessage(String message)
    {
        super(message);
    }

    /**
     * Returns this ActionMessage's text surrounding by html tags to bold it.
     * 
     * @return this ActionMessage's text surrounding by html tags to bold it.
     */
    public String getHTML()
    {
        return "<b>" + getPlainText() + "</b>";
    }

}
